<?php
/**
* @file commentauthorize.php
* @date: 2015-7-30 下午2:28:54
* @author: xiweijie
*/
namespace haibao\comment\model\data;

class CommentAuthInfo extends \haibao\comment\model\data\Base {
	/**
	 * 评论未授权
	 */
	const SELECTED_STATUS_NOAUDIT = 0;
	
	/**
	 * 评论已授权
	 */
	const SELECTED_STATUS_AUDIT = 1;
	 
	/**
	 * 授权并选中
	 */
	const SELECTED_STATUS_CHECK = 2;
	/**
	 * 评论来源_腾讯微博
	 */
	const AUTHDATA_TENCENT  = 1;
	 
	/**
	 * 评论来源_新浪微博
	 */
	const AUTHDATA_SINA  = 2;
	public $UserId;
	
	public $AuthData;
	
	public $SelectedStatus;
	
	public $CreateTime;
	
	public function __construct() {
		parent::__construct ();
	
		$this->intField('UserId', 'UserId',true);
		$this->stringField('AuthData', 'AuthData',true);
		$this->stringField ( 'SelectedStatus', 'SelectedStatus', true);
		$this->dateField('CreateTime', 'CreateTime',true);
		
		$this->setTableName ( 'CommentAuthInfo' );
	}
}